package com.qf.taobei.entity.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.qf.taobei.entity.Comment;
import com.qf.taobei.entity.Picture;
import com.qf.taobei.entity.Store;
import com.qf.taobei.entity.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(value = { "handler"})
public class ProductVo{
    @ApiModelProperty("商品id")
    private Integer id;
    @ApiModelProperty("商品名称")
    private String name;
    @ApiModelProperty("价格")
    private Double price;
    @ApiModelProperty("审核情况")
    private Integer flag;
    @ApiModelProperty("照片")
    private String url;
    @ApiModelProperty("库存")
    private Integer repertory;
    @ApiModelProperty("商品描述")
    private String context;
    @ApiModelProperty("类型")
    private String tName;
    @ApiModelProperty("商家id")
    private Integer storeId;
    @ApiModelProperty("上架时间")
    private String pushTime;
    @ApiModelProperty("下架时间")
    private String pullTime;
    @ApiModelProperty("提交时间")
    private String submitTime;
    @ApiModelProperty("销量")
    private Integer sale;
    @ApiModelProperty("折后价")
    private Double discountPrice;
    @ApiModelProperty("评星")
    private Integer star;
    @ApiModelProperty("成本价")
    private Double proCost;
    private Integer uid;

    //图片集合
    private List<Picture> pictureList;
    //商品对应的店铺
    private Store store;
    //店铺对应的商家
    private User user;

    private List<Comment> commentList;
}
